package com.edrive.surveyor;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.widget.Toast;

public class MyLocationListener implements LocationListener {


    public void onLocationChanged(Location location) {
        String message = String.format(
                "New Location \n Longitude: %1$s \n Latitude: %2$s",
                location.getLongitude(), location.getLatitude()
        );

      System.out.println("message : "+message);
    }

    public void onStatusChanged(String s, int i, Bundle b) {
    	System.out.println( "Provider status changed");
    }

    public void onProviderDisabled(String s) {
    	System.out.println(
                "Provider disabled by the user. GPS turned off"
               );
    }

    public void onProviderEnabled(String s) {
    	System.out.println(
                "Provider enabled by the user. GPS turned on"
                );
    }

} 


